home *** CD-ROM | disk | FTP | other *** search
-
- #####################################################################
- #####################################################################
- ## ##
- ## COLLECTION TEXT VIEW CREATION ##
- ## ##
- #####################################################################
- #####################################################################
-
-
- dwScript Generic__CollectionTextView {
- ## Note: only can get here in "frames" mode.
- if {[dwGet State__UpdateOtherFrames] != 0} {
- dwCall dwMakeUrlParts
- set selection "/[dwGetSelectionPath]"
- if {$selection == "/"} {set selection ""}
- ## Next line wanted to be set tocloc "../@Generic... , but
- ## MS Internet Explorer chokews on it. So instead, grab the base
- ## URL and chop off the last segment.
- regsub {(.*)/[^/]+/} [dwGet BaseUrl] {\1} toclocbase
- set tocloc "$toclocbase/@Generic__CollectionTocView$selection[dwGet UrlParamString][dwGet UrlQueryString]"
- set bbarloc "@Generic__CollectionButtonBarView[dwGet UrlParamString][dwGet UrlQueryString]"
- dwSet JavaScript__UpdateOtherFrames \
- "parent.dynaweb_toc.location=\"$tocloc\"; \
- parent.dynaweb_bbar.location=\"$bbarloc\""
- } else {
- dwSet JavaScript__UpdateOtherFrames ""
- }
- dwProcessTemplate Generic__CollectionTextTemplate
- }
-
-
- dwTemplate Generic__CollectionTextTemplate {
- $[dwSetRootPath [dwUrlEncode [dwGetSelectionPath]]]
- $[dwCall dwMakeUrlParts]
- <HTML>
- <HEAD>
- <BASE HREF="$[dwGet BaseUrl]@Generic__CollectionTextView">
- <SCRIPT Language="JavaScript">
- <!--
- $[dwGet JavaScript__UpdateOtherFrames]
- // -->
- </SCRIPT>
- </HEAD>
- <BODY BGCOLOR=#FFFBF0 LINK=#000000 ALINK=#008000 VLINK=#800080>
- <H3>Contents of the <i>$[dwGetRootTitle]</i> Collection</H3>
- <HR>
- $[dwCall Generic__GenerateCollectionTextViewBody]
- <HR>
- </BODY>
- </HTML>
- }
-
- dwScript Generic__GenerateCollectionTextViewBody {
- dwCall Tables__TocLinesBefore
- dwInitTocLineGenerator BooksAndCollections [dwGet State__CollTocDepth] \
- SortByHits
- dwCall Generic__GenerateCollectionTocLines
- dwCall Tables__TocLinesAfter
- }
-
-